package com.vichat.res.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-09-26 17:58:53.839
 */
@Entity
@Table(name = "sys_record",catalog = "cfgdb")
public class SysRecord implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "sys_record";

    /** */
	public static final String ALIAS_SRV_ID = "srv_id";
    /** */
	public static final String ALIAS_RID = "rid";
    /** */
	public static final String ALIAS_UID = "uid";
    /**麦序1,2,3等 */
	public static final String ALIAS_MIC_ID = "mic_id";
    /**在线即录制A，指定录制时间段T */
	public static final String ALIAS_REC_STRATEGY = "rec_strategy";
    /**指定录制开始时间，可为空 */
	public static final String ALIAS_REC_START_TIME = "rec_start_time";
    /**指定录制结束时间，不可为空 */
	public static final String ALIAS_REC_END_TIME = "rec_end_time";
    /**U有效，X无效 */
	public static final String ALIAS_REC_STATE = "rec_state";
    /** */
	public static final String ALIAS_OP_TIME = "op_time";
	
	

 	@Id
	@Column(name = "srv_id", unique = true, nullable = false)
    public java.lang.Long srvId;
  
 	@Id
	@Column(name = "rid", unique = true, nullable = false)
    public java.lang.Long rid;
  
 	@Column(name = "uid")
    public java.lang.Long uid;
  
 	@Column(name = "mic_id")
    public java.lang.Integer micId = 0;
  
 	@Column(name = "rec_strategy")
    public java.lang.String recStrategy;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "rec_start_time")
    public java.util.Date recStartTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "rec_end_time")
    public java.util.Date recEndTime;
  
 	@Column(name = "rec_state")
    public java.lang.String recState = "U";
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "op_time")
    public java.util.Date opTime;
  





	public java.lang.Long getSrvId() {
		return this.srvId;
	}
	
	public void setSrvId(java.lang.Long value) {
		this.srvId = value;
	}

	public java.lang.Long getRid() {
		return this.rid;
	}
	
	public void setRid(java.lang.Long value) {
		this.rid = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.Integer getMicId() {
		return this.micId;
	}
	
	public void setMicId(java.lang.Integer value) {
		this.micId = value;
	}

	public java.lang.String getRecStrategy() {
		return this.recStrategy;
	}
	
	public void setRecStrategy(java.lang.String value) {
		this.recStrategy = value;
	}

	public java.util.Date getRecStartTime() {
		return this.recStartTime;
	}
	
	public void setRecStartTime(java.util.Date value) {
		this.recStartTime = value;
	}

	public java.util.Date getRecEndTime() {
		return this.recEndTime;
	}
	
	public void setRecEndTime(java.util.Date value) {
		this.recEndTime = value;
	}

	public java.lang.String getRecState() {
		return this.recState;
	}
	
	public void setRecState(java.lang.String value) {
		this.recState = value;
	}

	public java.util.Date getOpTime() {
		return this.opTime;
	}
	
	public void setOpTime(java.util.Date value) {
		this.opTime = value;
	}


	
	public SysRecord() {
	}
	
	public SysRecord(boolean qryflag) {
	    if(qryflag){
	    		this.srvId = null;
				this.rid = null;
				this.uid = null;
				this.micId = null;
				this.recStrategy = null;
				this.recStartTime = null;
				this.recEndTime = null;
				this.recState = null;
				this.opTime = null;
			    }
	}


	public SysRecord(
	    java.lang.Long inSrvId,
	    java.lang.Long inRid,
	    java.lang.Long inUid,
	    java.lang.Integer inMicId,
	    java.lang.String inRecStrategy,
	    java.util.Date inRecStartTime,
	    java.util.Date inRecEndTime,
	    java.lang.String inRecState,
		java.util.Date inOpTime
	 ) {
		super();
				this.srvId = inSrvId;
				this.rid = inRid;
				this.uid = inUid;
				this.micId = inMicId;
				this.recStrategy = inRecStrategy;
				this.recStartTime = inRecStartTime;
				this.recEndTime = inRecEndTime;
				this.recState = inRecState;
				this.opTime = inOpTime;
			}





}

